package builder;

import builder.po.ChickenBurger;
import builder.po.Coke;
import builder.po.Pepsi;
import builder.po.VegBurger;

/**
 * 点餐服务类
 * @author lihaoshan
 * @date 2018-06-28
 * */
public class MealBuilder {

    /**
     * 素食套餐
     * */
    public Meal prepareVegMeal(){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    /**
     * 非素食套餐
     * */
    public Meal prepareNonVegMeal(){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }

}
